def rule(pred, action)
  return lambda {|value|
    if(pred.call(value))
      action(value)
    end
  }
end

def times(n)
  return lambda{|value|   return  value%n ==0}
end


